package com.galaxy.device.api;

import com.galaxy.common.core.domain.R;
import com.galaxy.device.config.FeignConfig;
import com.galaxy.device.domain.bo.UserFeedbackBo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 */
@FeignClient(
    contextId = "remoteUserFeedbackService",
    value = "galaxy-user",
    fallbackFactory = RemoteUserFallbackFactory.class,
    configuration = FeignConfig.class
)
public interface RemoteUserService {

    /**
     * 获取用户信息
     *
     * @param bo 用户信息
     * @return 用户信息
     */
    @PutMapping(value = "/api/feedback/updateByDeviceId", consumes = "application/json")
    R<Boolean> edit(@RequestBody UserFeedbackBo bo);


}
